package particle;

import javafx.scene.paint.Color;

public class BaseProperties {

	private double positionX;
	private double positionY;
	private double positionXVar;
	private double positionYVar;

	private double particleLife;
	private double particleLifeVar;
	private double angle;
	private double angleVar;

	private double srcSize;
	private double srcSizeVar;
	private double destSize;
	private double destSizeVar;

	private Color srcColor;
	private Color srcColorVar;
	private Color destColor;
	private Color destColorVar;

	private double particleAngle;
	private double particleAngleVar;
	private double destAngle;
	private double destAngleVar;

	public BaseProperties(PlistParser parser) {
		setPositionX(parser.getProperty(Properties.SRC_POS_X));
		setPositionY(parser.getProperty(Properties.SRC_POS_Y));
		setPositionXVar(parser.getProperty(Properties.SRC_POS_X_VAR));
		setPositionYVar(parser.getProperty(Properties.SRC_POS_Y_VAR));

		setParticleLife(parser.getProperty(Properties.LIFE_SPAN));
		setParticleLifeVar(parser.getProperty(Properties.LIFE_SPAN_VAR));

		setAngle(parser.getProperty(Properties.SHOOT_ANGLE));
		setAngleVar(parser.getProperty(Properties.SHOOT_ANGLE_VAR));

		setParticleAngle(parser.getProperty(Properties.SRC_ANGLE));
		setParticleAngleVar(parser.getProperty(Properties.SRC_ANGLE_VAR));
		setDestAngle(parser.getProperty(Properties.DEST_ANGLE));
		setDestAngleVar(parser.getProperty(Properties.DEST_ANGLE_VAR));

		setSrcColor(new Color(parser.getProperty(Properties.SRC_COLOR_RED),
				parser.getProperty(Properties.SRC_COLOR_GREEN),
				parser.getProperty(Properties.SRC_COLOR_BLUE),
				parser.getProperty(Properties.SRC_COLOR_ALPHA)));
		setSrcColorVar(new Color(parser.getProperty(Properties.SRC_COLOR_RED_VAR),
				parser.getProperty(Properties.SRC_COLOR_GREEN_VAR),
				parser.getProperty(Properties.SRC_COLOR_BLUE_VAR),
				parser.getProperty(Properties.SRC_COLOR_ALPHA_VAR)));
		setDestColor(new Color(parser.getProperty(Properties.DEST_COLOR_RED),
				parser.getProperty(Properties.DEST_COLOR_GREEN),
				parser.getProperty(Properties.DEST_COLOR_BLUE),
				parser.getProperty(Properties.DEST_COLOR_ALPHA)));
		setDestColorVar(new Color(parser.getProperty(Properties.DEST_COLOR_RED_VAR),
				parser.getProperty(Properties.DEST_COLOR_GREEN_VAR),
				parser.getProperty(Properties.DEST_COLOR_BLUE_VAR),
				parser.getProperty(Properties.DEST_COLOR_ALPHA_VAR)));
	}

	public double getPositionX() {
		return positionX;
	}

	public void setPositionX(double positionX) {
		this.positionX = positionX;
	}

	public double getPositionY() {
		return positionY;
	}

	public void setPositionY(double positionY) {
		this.positionY = positionY;
	}

	public double getPositionXVar() {
		return positionXVar;
	}

	public void setPositionXVar(double positionXVar) {
		this.positionXVar = positionXVar;
	}

	public double getPositionYVar() {
		return positionYVar;
	}

	public void setPositionYVar(double positionYVar) {
		this.positionYVar = positionYVar;
	}

	public double getParticleLife() {
		return particleLife;
	}

	public void setParticleLife(double particleLife) {
		this.particleLife = particleLife;
	}

	public double getParticleLifeVar() {
		return particleLifeVar;
	}

	public void setParticleLifeVar(double particleLifeVar) {
		this.particleLifeVar = particleLifeVar;
	}

	public double getAngle() {
		return angle;
	}

	public void setAngle(double angle) {
		this.angle = angle;
	}

	public double getAngleVar() {
		return angleVar;
	}

	public void setAngleVar(double angleVar) {
		this.angleVar = angleVar;
	}

	public double getSrcSize() {
		return srcSize;
	}

	public void setSrcSize(double srcSize) {
		this.srcSize = srcSize;
	}

	public double getSrcSizeVar() {
		return srcSizeVar;
	}

	public void setSrcSizeVar(double srcSizeVar) {
		this.srcSizeVar = srcSizeVar;
	}

	public double getDestSize() {
		return destSize;
	}

	public void setDestSize(double destSize) {
		this.destSize = destSize;
	}

	public double getDestSizeVar() {
		return destSizeVar;
	}

	public void setDestSizeVar(double destSizeVar) {
		this.destSizeVar = destSizeVar;
	}

	public Color getSrcColor() {
		return srcColor;
	}

	public void setSrcColor(Color srcColor) {
		this.srcColor = srcColor;
	}

	public Color getSrcColorVar() {
		return srcColorVar;
	}

	public void setSrcColorVar(Color srcColorVar) {
		this.srcColorVar = srcColorVar;
	}

	public Color getDestColor() {
		return destColor;
	}

	public void setDestColor(Color destColor) {
		this.destColor = destColor;
	}

	public Color getDestColorVar() {
		return destColorVar;
	}

	public void setDestColorVar(Color destColorVar) {
		this.destColorVar = destColorVar;
	}

	public double getParticleAngle() {
		return particleAngle;
	}

	public void setParticleAngle(double particleAngle) {
		this.particleAngle = particleAngle;
	}

	public double getParticleAngleVar() {
		return particleAngleVar;
	}

	public void setParticleAngleVar(double particleAngleVar) {
		this.particleAngleVar = particleAngleVar;
	}

	public double getDestAngle() {
		return destAngle;
	}

	public void setDestAngle(double destAngle) {
		this.destAngle = destAngle;
	}

	public double getDestAngleVar() {
		return destAngleVar;
	}

	public void setDestAngleVar(double destAngleVar) {
		this.destAngleVar = destAngleVar;
	}
}
